package com.example.wlt.personnel_manegement_system.User.My;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.example.wlt.personnel_manegement_system.User.My.Updateinfor;
import com.example.wlt.personnel_manegement_system.R;

/**
 * Created by WLT on 2016/4/22.
 */
public class Checkinfor extends Activity {
    private Button btn_check;//查看按钮
    private Button btn_updinf;//修改按钮
    private Button btn_back;//返回按钮
    private TextView tv_head;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.mycenter_checkinfor);
        btn_check=(Button)findViewById(R.id.btn_checkinf_check);
        btn_updinf=(Button)findViewById(R.id.btn_checkinf_update);
        btn_back=(Button)findViewById(R.id.btn_org_headleft);
        tv_head=(TextView)findViewById(R.id.tv_top_head);
        tv_head.setText("个人信息");
        btn_check.setTextColor(getResources().getColor(R.color.inf_button));
        //进入修改个人信息页面
        btn_updinf.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent Intent=new Intent(Checkinfor.this,Updateinfor.class);
                startActivity(Intent);
                finish();
            }
        });
        //返回个人首页
        btn_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
               finish();
            }
        });
    }
}
